package top.juntower.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.juntower.dao.GameTypeMapper;
import top.juntower.pojo.GameInformation;
import top.juntower.pojo.GameTrafficRanking;
import top.juntower.pojo.GameType;
import top.juntower.pojo.GameTypeInformation;
import top.juntower.pojo.vo.GameTypeInformationVo;
import top.juntower.service.GameTypeService;

import java.util.List;
import java.util.Map;

@Service
public class GameTypeServiceImpl implements GameTypeService {
    @Autowired
    private GameTypeMapper gameTypeMapper;

    @Override
    public List<GameType> queryGameTypes() {
        return gameTypeMapper.queryGameTypes();
    }

    @Override
    public List<GameTypeInformation> GameTypeById(Integer gtId, Integer pageNum, Integer pageSize) {
        return gameTypeMapper.GameTypeById(gtId, pageNum, pageSize);
    }

    @Override
    public GameInformation gameInformation(Integer giId) {
        return gameTypeMapper.gameInformation(giId);
    }

    @Override
    public List<GameTypeInformationVo> gameTypeInformationPaiHang(Integer gtId) {
        return gameTypeMapper.gameTypeInformationPaiHang(gtId);
    }

    @Override
    public String isCollectionGame(Integer giId, Integer uId) {
        return gameTypeMapper.isCollectionGame(giId, uId);
    }

    @Override
    public String CollectionGame(Integer giId, Integer uId) {
        return gameTypeMapper.CollectionGame(giId, uId);
    }

    @Override
    public int addCollectionGame(Map map) {
        return gameTypeMapper.addCollectionGame(map);
    }

    @Override
    public int updateCollectionGame(Map map) {
        return gameTypeMapper.updateCollectionGame(map);
    }

    @Override
    public int addVisits(Integer giId) {
        return gameTypeMapper.addVisits(giId);
    }

    @Override
    public List<GameTrafficRanking> trafficRanking(Integer pageNum, Integer pageSize) {
        return gameTypeMapper.trafficRanking(pageNum, pageSize);
    }

    @Override
    public List<GameTrafficRanking> scoreRanking(Integer pageNum, Integer pageSize) {
        return gameTypeMapper.scoreRanking(pageNum, pageSize);
    }

    @Override
    public List<GameTrafficRanking> newHotRanking(Integer pageNum, Integer pageSize) {
        return gameTypeMapper.newHotRanking(pageNum, pageSize);
    }

    @Override
    public List<GameTrafficRanking> domesticHotRanking(Integer pageNum, Integer pageSize) {
        return gameTypeMapper.domesticHotRanking(pageNum,pageSize);
    }

    @Override
    public List<GameTrafficRanking> abroadHotRanking(Integer pageNum, Integer pageSize) {
        return gameTypeMapper.abroadHotRanking(pageNum, pageSize);
    }

    @Override
    public List<GameTypeInformation> likeGame(String likeName, Integer pageNum, Integer pageSize) {
        return gameTypeMapper.likeGame(likeName,pageNum,pageSize);
    }


}
